import java.awt.Color;
import java.awt.Graphics;


public class npc {
	
	Graphics img;
	int size;
	int row;
	int col;
	int eye;
	boolean draw = true;

	/**
	 * 
	 * @param img_
	 * @param col_
	 * @param row_
	 * @param size_
	 * @param eye_
	 */
	public npc(Graphics img_, int col_, int row_, int size_, int eye_)
	{
		eye = eye_;
		img  = img_;
		size = size_;
		col = col_;
		row = row_;
		drawNPC();
	}
	
	/**
	 * 
	 * draw the npc
	 * 
	 */
	public void drawNPC()
	{
		if(draw)
		{
			//draw the body
			img.setColor(Color.WHITE);
			img.fillRect(col * size, row * size, size - 1, size - 1);
			
			img.setColor(Color.BLACK);
			img.drawRect(col * size, row * size, size - 1, size - 1);
			
			//draw the eyes
			img.setColor(Color.BLACK);
			img.fillRect(col * size + 3, row * size, 4, (int) eye);
			img.fillRect(col * size + 11, row * size, 4, (int) eye);
		}
	}

	/**
	 * 
	 * the getters and setters
	 * 
	 */
	public void setEye(int eye) {
		this.eye = eye;
	}
	
	public void setDraw(boolean draw) {
		this.draw = draw;
	}
	
	public int getCol() {
		return col;
	}
	
	public int getRow() {
		return row;
	}
}
